REQUESTLIST instem CONFS title '"Name of conference containing incoming messages "'
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
EditTEXTFILE:
call SplitPath()
REQUESTFILE title '"Please select the reply text file"' ID '"'path'"' IF '"'file'"' FULLPATH
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
EditSUBJECT:
REQUESTSTRING title '"CfgAutoReply"' body '"Subject line for reply\nUse %%s to include original subject\nDefault is Re: %s"' BT '" _OK |Cancel"' ID '"'EditValue'"'
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
EditQUOTEMSG:
REQUESTNOTIFY '"Where would you like the quote the incoming mail,\n above your reply, below it, or not at all?"' '"_Above|_Below|_NoQuote"'
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
select
when result = 1 then EditValue = 'Above'
when result = 2 then EditValue = 'Below'
otherwise EditValue = ''
end
return
EditQUOTESTR:
REQUESTSTRING title '"CfgAutoReply"' body '"The string or character prepended to quoted lines"' BT '" _OK |Cancel"' ID '"'EditValue'"'
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
EditSIGFILE:
call SplitPath()
REQUESTFILE title '"Please select signature file"' ID '"'path'"' IF '"'file'"' FULLPATH
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
EditHEADFILE:
call SplitPath()
REQUESTFILE title '"Please select a header file"' ID '"'path'"' IF '"'file'"' FULLPATH
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
EditFOOTFILE:
call SplitPath()
REQUESTFILE title '"Please select a footer file"' ID '"'path'"' IF '"'file'"' FULLPATH
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
EditValue = result
return
;;
/* :Split the current EditValue into path and file */
SplitPath:
select
when lastpos('/',EditValue) > 0 then do
pathend = lastpos('/',EditValue)
path = left(EditValue,pathend-1)
file = substr(EditValue,pathend+1)
end
when lastpos(':',EditValue) > 0 then do
pathend = lastpos(':',EditValue)
path = left(EditValue,pathend)
file = substr(EditValue,pathend+1)
end
when EditValue = '' then do
Path = 'RAM:'
File = ''
end
otherwise do
path = ''
file = EditValue
end
end
return
;;
/* :Delete a configuration */
DeleteCfg:
/* Select config to delete */
REQUESTLIST instem Config title '"Choose configuration to delete "'
if RC = 5 then return
if RC > 0 then call ExitMsg(THOR.LASTERROR)
DelCfg = result
REQUESTNOTIFY '"'DelCfg||':\nAre you sure you want to delete this configuration?"' '"_Delete|_Cancel"'
if result = 0 then return
Changed = 1
do i = 1 to Config.Count
if Config.i = DelCfg then leave
end
CfgNo = i
Config.Count = Config.Count - 1
if CfgNo <= Config.Count then do i = CfgNo to Config.Count
x = i+1
Config.i = Config.x
do j = 1 to Fields.Name.Count
if symbol('Config.x.'Fields.Name.j) = 'VAR' then do